Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing balance in generateCanonicalGenesis #589

Merged
merged 3 commits into from
Sep 10, 2019
Merged

Conversation

s1na
Copy link
Contributor

@s1na s1na commented Sep 3, 2019

Fixes #586

If balances in ethereumjs-common are prefixed with 0x, they'd have to be parsed as a hex string.

Added test cases to ensure generating the genesis state for every chain matches the expected state root. All tests pass, expect for kovan. Noticed that the genesisState file for kovan is empty in ethereumjs-common.

@s1na
Copy link
Contributor Author

s1na commented Sep 3, 2019

The failing test case would be fixed after ethereumjs/ethereumjs-common#66 is merged and released.

@alcuadrado
Copy link
Member

I restarted the tests on circle, and I don't get why the tests are failing. ethereumjs/ethereumjs-common#66 was already merged and released.

@s1na
Copy link
Contributor Author

s1na commented Sep 10, 2019

Yeah, I'm wondering too, will look into it now, thanks for restarting the tests

@s1na
Copy link
Contributor Author

s1na commented Sep 10, 2019

Merged in master, should be fixed now

@coveralls
Copy link

coveralls commented Sep 10, 2019

Coverage Status

Coverage increased (+0.005%) to 95.283% when pulling f21d223 on fix/generate-genesis into 7c24795 on master.

Copy link
Member

@alcuadrado alcuadrado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are passing now. It should be ready to merge.

I like that this is being tested now :)

@s1na
Copy link
Contributor Author

s1na commented Sep 10, 2019

I merged the other PR first and this became out-dated. @alcuadrado can you re-approve after tests pass?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Genesis stateRoot incorrect for Goerli testnet due to account balances
4 participants